#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

void * thread_entry(void * args)
{
	printf("thread Stard %d", pthread_self());
	while(1)
	{
		sleep(1000);
	}
}

int main()
{
	pthread_attr_t attr;
	pthread_t pid;

	pthread_attr_init(&attr);

	pthread_create(&pid, &attr, thread_entry, NULL);

	pthread_join(pid,NULL);

	return 0;
}
